import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
    },
    {
      path: '/metamask',
      name: 'metamask',
      component: () => import('../views/Metamask.vue'),
    },
    {
      path: '/ethers',
      name: 'ethers',
      component: () => import('../views/Ethers.vue'),
    },
    {
      path: '/contract',
      name: 'contract',
      component: () => import('../views/Contract.vue'),
    },
    {
      path: '/wallet',
      name: 'wallet',
      component: () => import('../views/Wallet.vue'),
    },
    {
      path: '/nft',
      name: 'nft',
      component: () => import('../views/Nft.vue'),
    },
    {
      path: '/erc20',
      name: 'erc20',
      component: () => import('../views/Erc20.vue'),
    },
    {
      path: '/transactionInfo/:hash',
      name: 'transactionInfo',
      component: () => import('../views/transactionInfo.vue'),
    },
  ],
})

export default router
